/*************************************************************************
> File Name: 01_test.c
> Author: hzy
> Created Time: 2023-08-09 09:23:34
> Description:
************************************************************************/
#include <iostream>

using namespace std;

class Person
{
public:
    string name;

    void PersonEating(Person person)
    {
        cout << person.name << "吃饭" << endl;
    }
};

class Dog
{
public:
    string name;

    void DogEating(Dog dog)
    {
        cout << dog.name << "吃狗粮" << endl;
    }
};

int main()
{
    Person person;
    Dog dog;

    person.name = "小黑哥";
    dog.name = "狗大哥";

    person.PersonEating(person);
    dog.DogEating(dog);

    return 0;
}